package com.example.child_protection.service;

import com.example.child_protection.dto.base.BaseResponseDTO;
import com.example.child_protection.dto.request.SimpleIdRequestDTO;
import com.example.child_protection.dto.request.add.UserInsertRequestDTO;
import com.example.child_protection.dto.request.find.CkeckUserNameRequestDTO;
import com.example.child_protection.dto.request.find.UserPageQueryRequestDTO;
import com.example.child_protection.dto.request.find.UserQueryRequestDTO;
import com.example.child_protection.dto.request.update.UserUpdateRequestDTO;
import com.example.child_protection.dto.response.CheckUserResponseDTO;
import com.example.child_protection.dto.response.UserPageResponseDTO;
import com.example.child_protection.dto.response.UserResponseDTO;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * 用户信息查询service
 * @date 2018-11-2
 * @author Biz
 */
@Service
public interface UserQueryService {

    /**
     * id查询
     * @param requestDTO
     * @return
     */
    public UserResponseDTO findId(SimpleIdRequestDTO requestDTO);

    /**
     * 分页 查询
     * @param requestDTO
     * @return
     */
    public UserPageResponseDTO findPage(UserPageQueryRequestDTO requestDTO);

    /**
     * 检测用户名是否存在
     * @param requestDTO
     * @return
     */
    public CheckUserResponseDTO checkUserName(CkeckUserNameRequestDTO requestDTO);

}
